package top.suven.base.http.admin.config.service;

import top.suven.base.core.mybatis.PageData;
import top.suven.base.http.admin.config.model.MqFailInfo;
import top.suven.base.http.admin.config.vo.response.MqFailInfoResponseVo;

import java.util.List;

/**
 * @Title: MqFailInfoWebService.java
 * @Description: MQ消费失败信息的业务处理服务类
 * @author lixiangling
 * @date   2018/09/06 18:49:45
 * @version  V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
public interface MqFailInfoWebService {
    /**
     * @Title: 获取MQ消费失败信息分页信息
     * @Description:
     * @param mqFailInfo @{Link MqFailInfo}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/09/06 18:49:45
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public PageData<MqFailInfoResponseVo> getMqFailInfoPage(MqFailInfo mqFailInfo, int start, int pageSize);
   /**
    * @Title: 获取MQ消费失败信息列表信息
    * @Description:
    * @param mqFailInfo @{Link MqFailInfo}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/09/06 18:49:45
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public List<MqFailInfo> getMqFailInfoList(MqFailInfo mqFailInfo);
    /**
     * @Title: 获取MQ消费失败信息列表信息
     * @Description:
     * @param ids @{Link List}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/09/06 18:49:45
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public List<MqFailInfo> getMqFailInfoListByInit(List<Long> ids);
    /**
     * @Title: 获取全部待处理的MQ消费失败信息列表信息
     * @Description: 根据标题获取全部待处理的
     * @param topicName @{Link String}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/09/06 18:49:45
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public List<MqFailInfo> getMqFailInfoListByTopicNameAndInit(String topicName);
    /**
     * @Title: 新增MQ消费失败信息信息
     * @Description:
     * @param mqFailInfo @{Link MqFailInfo}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/09/06 18:49:45
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void addMqFailInfo(MqFailInfo mqFailInfo);
    /**
    * @Title: 修改MQ消费失败信息信息
    * @Description:
    * @param mqFailInfo @{Link MqFailInfo}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/09/06 18:49:45
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void updMqFailInfo(MqFailInfo mqFailInfo);
   /**
    * @Title: 获取MQ消费失败信息信息
    * @Description:
    * @param id @{Link Long}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/09/06 18:49:45
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public MqFailInfo getMqFailInfo(Long id);
    /**
     * @Title: 删除MQ消费失败信息信息
     * @Description:id @{Link Long[]}
     * @param
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/09/06 18:49:45
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void del(Long[] ids);
    /**
     * @Title: 取消补偿MQ消费失败信息信息
     * @Description:
     * @param ids @{Link Long[]}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/09/06 18:49:45
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void cancel(Long[] ids,String reason);
}